package com.itbaizhan.config;

import com.itbaizhan.service.WeatherService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;

import java.util.function.Function;

@Configuration
public class Config {


    @Bean
    @Description("获取所在位置的天气信息")
    public Function<WeatherService.Request,WeatherService.Response> getWeatherFuntion(){
        return new WeatherService();
    }


}
